package com.huaxin.device.dto.request;

import com.huaxin.device.dto.request.base.BasePageReqDTO;
import com.huaxin.hxenum.validation.ValidDataType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class MetricCodeDictPageListReqDTO extends BasePageReqDTO {

    @Schema(description = "指标编码", example = "PWR001")
    private String metricCode;

    @Schema(description = "指标名称关键字", example = "电压")
    private String metricName;

    @Schema(description = "大类", example = "Power")
    private String category;

    @Schema(description = "数据类型：number/string", example = "number")
    @ValidDataType
    private String dataType;

    @Schema(description = "是否启用", example = "true")
    private Boolean isActive;

    @Schema(description = "是否支持报警", example = "true")
    private Boolean alarmEnabled;
}